#pragma once
#include <QLine>

const double const_minValue = 0.001;

class LineUI : public QLineF {
public:
	LineUI() : QLineF(), width(0) {}
	LineUI(qreal x1, qreal y1, qreal x2, qreal y2, double w = 0)
		: QLineF(x1, y1, x2, y2), width(w) {
	}
	LineUI(const QPointF& p1, const QPointF& p2, double w = 0)
		: QLineF(p1, p2), width(w) {
	}
	LineUI(const QLineF& line, double w = 0)
		: QLineF(line), width(w) {
	}


public:
	double width = 0;

	std::vector<QPointF> getIntPts(bool withP1, bool withP2);
};
